/*
 * @Author: 码上talk|RC
 * @Date: 2020-06-09 23:23:29
 * @LastEditTime: 2021-10-04 11:39:14
 * @LastEditors: 码上talk|RC
 * @Description:
 * @FilePath: /ma-portal/store/sys/mutations.js
 * @Just do what I think it is right
 */

import * as types from './mutation-types';



export const mutations = {
  [types.SET_WS_UPDATE_IS_WILL_UPDATE] (state, b) {
    state.update.isWillUpdate = b;
  },
  [types.SET_WS_UPDATE_IS_SHOW_UPDATE_LOG] (state, b) {
    state.update.isShowUpdateLog = b;
  },
  [types.SET_WS_UPDATE_VERSION] (state, o) {
    const { version, updateStartTime, updateEndTime, contentFixed, contentNew } = o;
    state.update.info.version = version;
    state.update.info.updateStartTime = updateStartTime;
    state.update.info.updateEndTime = updateEndTime;
    state.update.info.contentFixed = contentFixed;
    state.update.info.contentNew = contentNew;
  }
};
